package org.example.test;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 影片
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Movie {
	// 名称
	private String title;
	// 影片类型
	private int priceCode;
	// 价格
	private String price;
	// 最小优惠天数
	private Integer minDiscountDays;
	// 优惠价格
	private String discountPrice;

	public Movie(String title, int priceCode, Float price, Integer minDiscountDays, Float discountPrice) {
		this.title = title;
		this.priceCode = priceCode;
		this.price = String.valueOf(price);
		this.minDiscountDays = minDiscountDays;
		this.discountPrice = String.valueOf(discountPrice);
	}

	public String getTitle() {
		return title;
	}

	public int getPriceCode() {
		return priceCode;
	}

	public void setPriceCode(int priceCode) {
		this.priceCode = priceCode;
	}
}
